package levels
{
	import org.flixel.*;
	
	import states.GameState;
	import enemies.*;
	import interactions.*;
	import items.*;
	import treasures.*;
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Level_6 extends GameState
	{
		override public function create():void
		{
			super.create();
			
			_maze.load(MazeData.ghostface);
			
			Player.spawnAt(14, 8);
			
			Tracker.lives = 1;
			Tracker.mapScore = 1000;
			Tracker.minScore = 3;
			
			addEntity(new SpeedBooster(18, 8));
			addEntity(new RockThrow(10, 8));
			addEntity(new Slow(13, 11));
			addEntity(new Slow(15, 11));
			
			var t1:Teleporter = new Teleporter(14, 3);
			var t2:Teleporter = new Teleporter(14, 11);
			t1.other = t2;
			t2.other = t1;
			addEntity(t1);
			addEntity(t2);
			
			addEntity(new Trapdoor(14, 13));
			addEntity(new Trapdoor(14, 4));
			
			addEntity(new LootBag(12, 1));
			addEntity(new LootBag(16, 1));
			
			addEntity(new LootBag(12, 15));
			addEntity(new LootBag(16, 15));
			
			addEntity(new LootBag(9, 7));
			addEntity(new LootBag(19, 7));
						
			addEntity(new Robber(3, 20));
			addEntity(new Exorcist(14, 20));
			addEntity(new Brute(25, 20));
			
			gameStart();
		}
	}
}